import request from '@/utils/request'

// 发送请求axios

// export const getBooksAPI = () => {
//  return request.get('/api/getbooks')// 发送请求，得到promise对象
// }

export const getBooksAPI = () => request.get('/api/getbooks')

export const addBookAPI = row => {
  return request.post('/api/addbook', row)
}
export const delBookAPI = () => {}
